<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet"
	href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
<script
	src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery.form.js"></script>
<script src="js/index.js"></script>
<title>个人信息</title>
</head>
<body>
	<h2>个人信息</h2>
	<hr>
	<div style="margin-left:50px;float:left" >修改头像：</div>
	<div class="img" style="margin-left:50px;float:left" >
		<a data-toggle="modal" data-target="#myModal_img">
		  <c:if test="${custom.c_img!=null }">
						<img
							src="showImg.do?c_name=${custom.c_name }&c_pwd=${custom.c_pwd}"
							style="width: 60px; height: 50px; border-radius: 50%; border: 5px solid #999; overflow: hidden;">
					</c:if>
					<c:if test="${custom.c_img==null }">
						<img src="images/unfind.jpg"
							style="width: 60px; height: 50px; border-radius: 50%; border: 5px solid #999; overflow: hidden;">
					</c:if>
			
		</a>
	</div>
	<div class="clearfix"></div>
	<div style="margin-left:50px;margin-top:30px;float:left">
		昵称：<input type="text" name="c_nick" id="c_nick" placeholder="给自己一个昵称"/>&nbsp;&nbsp;&nbsp;&nbsp;<button class="edit_nick">修改</button>
	</div>


	<div class="modal fade" id="myModal_img" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">上传头像</h4>
				</div>
				<div class="modal-body">
					<form action="uploadImg.do" id="mygrxx" method="post"
						enctype="multipart/form-data" target="hidden_frame">
						<input type="file" name="c_img" id="c_img"> <input
							type="hidden" name="c_id" id="c_id" value="${custom.c_id}">
						<input type="submit" id="sub" value="提交">
					</form>
					<!-- 				<iframe name='hidden_frame' id="hidden_frame" style='display: none'></iframe> -->
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal -->
	</div>
	<script type="text/javascript">
		$(function(){
			$("#mygrxx").ajaxForm(function() {
				alert("上传成功");
				window.location.reload();
				parent.location.reload();
			});
		});
	</script>

</body>
</html>
